<?php
/*
 * @project CreativeFramework
 * @version <#RELEASE_VERSION#>
 * @license GNU Lesser General Public License
 * @author Jimmie Lin
 */

class Models {
	public function Load($model_name, $application = APPLICATION) {
		global $Debug;
		$path = APPLICATION_PATH."universal/".$application."/models/{$model_name}.php";
		if(file_exists($path)) {
			$model_class_name = ucwords($model_name);
			require_once($path);
			${$model_name} = new $model_class_name;
			$Debug->writeLog("Initialized Model {$model_name} of app ".$application.".", "Core");
			return ${$model_name};
		}
		else return false;
	}
}

class CF_Model {
}
